#include <iostream>
#include <string>
using namespace std;

class Solution
{
public:
    bool isSubsequence(string s, string t)
    {
        if (s.size() == 0)
        {
            return true;
        }
        int i = 0;
        for (const char c : t)
        {
            if (c == s[i])
            {
                i++;
                if (i == s.size())
                {
                    return true;
                }
            }
        }
        return false;
    }
};
int main()
{
    cout << "Code392" << endl;
    Solution s;
    cout << s.isSubsequence("abc", "ahbgdc") << endl;
    return 0;
}